using System;
using System.Diagnostics;
using System.Reflection;
using SVNClean.Modules;
using SVNClean.Properties;

namespace SVNClean.Windows {
    public partial class frm_About : DevExpress.XtraEditors.XtraForm {
        /// <summary>
        /// Initializes a new instance of the <see cref="frm_About"/> class.
        /// </summary>
        public frm_About() {
            InitializeComponent();
        }

        private void simpleButton2_Click(object sender, EventArgs e) {
            var info = new ProcessStartInfo("iexplore.exe");
            info.Arguments = Resources.SupportURL;
            Process.Start(info);
            Close();
        }

        private void frm_About_Load(object sender, EventArgs e) {
            lblVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            lblReleaseDate.Text = Assembly.GetExecutingAssembly().GetName().GetBuildDate().ToString("dd/MM/yyyy");
        }
    }
}